/** ServiceDao */
package server.service.medicalservice;

import java.util.List;

import server.Database;
import domain.records.MedicalService;

/**
Interacts with the DATABASE
 * @author jessienewman
 * @version $Revision: 1.0 $
 */
public class ServiceDao {
	/**
	 * Field DATABASE.
	 */
	private Database database;

	/**
	 * Constructor for ServiceDao.
	 */
	public ServiceDao() {
		database = Database.DATABASE;
	}
	
	/**
	 * Method getAllServices.
	
	 * @return MedicalService[] */
	public List<MedicalService> getAllServices() {
		MedicalService[] ms = new MedicalService[database.services.size()];
		return database.services;
	}
	
	/**
	 * super's toString
	
	 * @return super's toString */
	public String toString() {
		return super.toString();
	}
}
